<?php
$this->Html->addCrumb('Blog');
?>
<div class="mdl-con" style="width: 846px;">
    <div class="porduct-con1">
<h2 style=" color: #0066CC;font-size: 18px;font-weight: normal;margin: 0 0 20px;">Recent Posts</h2>

<?php
if (!empty($blogs)) {
    $i = 0;
    foreach ($blogs as $blog):
        $class = null;
        if ($i++ % 2 == 0) {
            $class = ' class="altrow"';
        }
?>
        <div class="result">
            <h2><?php
        echo "<a href=".Configure::read("base_url")."blogs/view/".$blog['Blog']['id'].">".$blog['Blog']['title'];
?></a></h2>
            <div style="font-size: 12px;margin: 0 0 8px;color: gray;">
        <?php
        echo date('F d, Y', strtotime($blog['Blog']['posting_date']));
        ?>
    </div>
    <br />
    <p>
        <?php
       
        echo $this->Text->truncate($blog['Blog']['description'], 400, array(
'ending' => '...',
'exact' => false
));
        ?>
        <!--<a href="blog-details.html">Read More ></a>--></p>
    <br />
</div>
<?php
        endforeach;
    } else {
        echo 'No data Found!';
    }
?>
<br />
 <div class="paging">

		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	  	|&nbsp;<?php echo $this->Paginator->numbers();?>&nbsp;|

		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
  <div class="clear"></div>
    </div>
</div>

<div class="rht-con-sml">
   
</div>

<!--Start slider--><!--End Slider-->